// src/main.js
import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import "./permission"; //引入vue-router导航守卫
import store from './store'
import registerSvgIcon from './icons';
// Vuetify
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import "@/styles/index.scss";
import promptPlugin from './plugins/promptPlugin';
import axiosPlugin from './plugins/axiosPlugin';
import socketPlugin from './plugins/socketPlugin';
import 'dayjs/locale/zh-cn';//中文
import locale from "element-plus/es/locale/lang/zh-cn";
import moment from "moment";
import "moment/locale/zh-cn";
import './utils/rem.js'; //中引入rem.js
moment.locale('zh-cn')
const app = createApp(App)

app
    .use(router)
    .use(store)
    .use(promptPlugin)
    .use(axiosPlugin)
    .use(ElementPlus)
    .use(socketPlugin)
    .use(ElementPlus, {locale})
    .mount('#app');
registerSvgIcon(app)

